import request from '@/utils/request';

// 查询预约列表
export function bookList(query) {
    return request({
        url: '/book/book/list',
        method: 'get',
        params: query
    })
}

// 预约操作
export function toBook(query) {
  return request({
      url: '/book/book/toBook',
      method: 'post',
      data: query
  })
}

// 取消预约操作
export function cancelBook(query) {
  return request({
      url: '/book/book/cancelBook',
      method: 'post',
      data: query
  })
}